<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
<title>库存列表</title>
<%@ include file="/WEB-INF/jsp/public/commons.jspf"%>
</head>
<body>
	<s:form action="storage_list">
	<input type="hidden" name="GoodsName" value="${GoodsName}"/>
	<input type="hidden"  name="goodsCateId" value="${goodsCateId}"/>
	</s:form>
	<div id="Title_bar">
		<div id="Title_bar_Head">
			<div id="Title_Head"></div>
			<div id="Title">
				<!--页面标题-->
				<img border="0" width="13" height="13"
					src="${pageContext.request.contextPath}/style/images/title_arrow.gif" />
				库存列表
			</div>
			<div id="Title_End"></div>
		</div>
	</div>

	<div id="QueryArea">
		<div style="height: 50px">
			<s:form action="storage_list">
				<table>
					<tr>
						<td>商品分类：</td>
						<td><s:select name ="goodsCateId"  id="goodsCateList" list="#request.goodsCateList"
								listKey="id" listValue="name" headerKey="0" headerValue="所有分类"
								onchange="queryGoodList();">
							</s:select></td> 
						<td>商品名模糊查询：</td>
						<td><input type="text" id="GoodsName" name="GoodsName"
							value="${GoodsName}"> </input>
						</td>
						<td><s:a>
								<input type="IMAGE"
									src="${pageContext.request.contextPath}/style/blue/images/button/query.PNG" />
							</s:a></td>
					</tr>
				</table>
			</s:form>
		</div>
	</div>

	<div id="MainArea">
		<table cellspacing="0" cellpadding="0" class="TableStyle">

			<!-- 表头-->
			<thead>
				<tr align=center valign=middle id=TableTitle>
					<td width="100">商品分类</td>
					<td width="200">商品名称</td>
					<td width="200">商品单价</td>
					<td width="100">库存数量</td>
					<td width="200">库存总额</td>
				</tr>
			</thead>

			<!--显示数据列表-->
			<tbody id="TableData" class="dataContainer" datakey="userList">
				<s:iterator value="recordList" id="id">
					<tr align="center" valign="middle" class="TableDetail1 template">
						<td>${goods.goodsCate.name}</td>
						<td>${goods.name}</td>
						<td>${goods.price}</td>
						<td>${goodsNumber}</td>
						<td>${zonge}</td>
					</tr>
				</s:iterator>

			</tbody>
		</table>

		<!-- 其他功能超链接 -->
		<div id="TableTail">
			<div id="TableTail_inside">
				<button id="downGoods" onclick="javascript:location.href ='goods_list.do';">添加商品到库存</button>
			</div>
		</div>
	</div>

	<!-- 分页信息 -->
	<%@ include file="/WEB-INF/jsp/public/pageView.jspf"%>
</body>
</html>
